Socket
Socket
Sign inDemoInstall

is-url

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-url


Version published
Maintainers
2
Install size
7.32 kB
Created

Package description

What is is-url?

The is-url npm package is a simple utility to check if a given string is a valid URL. It is lightweight and easy to use, making it a convenient choice for basic URL validation tasks.

What are is-url's main functionalities?

Basic URL Validation

This feature allows you to check if a given string is a valid URL. The function returns true if the string is a valid URL and false otherwise.

const isUrl = require('is-url');

console.log(isUrl('https://www.example.com')); // true
console.log(isUrl('not a url')); // false

Other packages similar to is-url

Readme

Source

is-url

Check whether a string is a URL.

Installation

npm install is-url

API

isUrl(string)

Returns a Boolean indicating whether string is a URL.

License

MIT

FAQs

Last updated on 26 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc